# -*- coding: utf-8 -*-
"""
Created on Tue Apr  7 15:47:09 2020

@author: wjx
"""
class Foo:
    city = '北京'
    
    def __init__(self,name):
        self.name = name
#-----------------------------------------

class Page:
    def __init__(self,total_count,current_page,per_page_count=10):
        self.total_count = total_count
        self.per_page_count = per_page_count
        self.current_page = current_page
        
    @property
    def start_index(self):
        return (self.current_page - 1) * self.per_page_count
    
    @property
    def end_index(self):
        return self.current_page * self.per_page_count
    
USER_LIST = []
for i in range(213):
    USER_LIST.append('alex-%s' % (i,))
    
#分页展示
current_page = int(input('请输入要查看的页码'))
p = Page(213,current_page)
data_list = USER_LIST[p.start_index:p.end_index]
for item in data_list:
    print(item)
    
#----------------------------------------------------
class Base:
    def __f1(self):
        print('Base.f1')
class Koo(Base):
    def fun(self):
        self.__f1()